package com.ssyt.ec.stu.entity;

import java.util.Date;

/**
 * 用户实体
 * 
 * @author Administrator
 *
 */
public class UserEntity {
	private int id;
	private String code;
	private String password;
	private String name;
	private int sex;
	private String phone;
	private String email;
	private Date createTime;
	private int operateUserId;
	private Date operateTime;
	private int role__id;
	private int class__id;
	private int state;
	private String memo;
	private String role__name;
	private String class__name;

	public UserEntity() {
		super();
	}

	public String getClass__name() {
		return class__name;
	}

	public void setClass__name(String class__name) {
		this.class__name = class__name;
	}

	public String getRole__name() {
		return role__name;
	}

	public void setRole__name(String role__name) {
		this.role__name = role__name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		if (sex == 1) {
			return "男";
		} else if (sex == 2) {
			return "女";
		} else {
			return null;
		}
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getOperateUserId() {
		return operateUserId;
	}

	public void setOperateUserId(int operateUserId) {
		this.operateUserId = operateUserId;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}

	public int getRole__id() {
		return role__id;
	}

	public void setRole__id(int role__id) {
		this.role__id = role__id;
	}

	public int getClass__id() {
		return class__id;
	}

	public void setClass__id(int class__id) {
		this.class__id = class__id;
	}

	public String getState() {
		if (state == 1) {
			return "启用";
		} else if (state == 2) {
			return "已禁用";
		} else {
			return "已删除";
		}
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
